package com.ruoyi.dailyoperations.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dailyoperations.mapper.MeetingMinutesMapper;
import com.ruoyi.dailyoperations.domain.MeetingMinutes;
import com.ruoyi.dailyoperations.service.IMeetingMinutesService;

/**
 * 会议纪要Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-14
 */
@Service
public class MeetingMinutesServiceImpl implements IMeetingMinutesService 
{
    @Autowired
    private MeetingMinutesMapper meetingMinutesMapper;

    /**
     * 查询会议纪要
     * 
     * @param id 会议纪要主键
     * @return 会议纪要
     */
    @Override
    public MeetingMinutes selectMeetingMinutesById(Long id)
    {
        return meetingMinutesMapper.selectMeetingMinutesById(id);
    }

    /**
     * 查询会议纪要列表
     * 
     * @param meetingMinutes 会议纪要
     * @return 会议纪要
     */
    @Override
    public List<MeetingMinutes> selectMeetingMinutesList(MeetingMinutes meetingMinutes)
    {
        return meetingMinutesMapper.selectMeetingMinutesList(meetingMinutes);
    }

    /**
     * 新增会议纪要
     * 
     * @param meetingMinutes 会议纪要
     * @return 结果
     */
    @Override
    public int insertMeetingMinutes(MeetingMinutes meetingMinutes)
    {
        return meetingMinutesMapper.insertMeetingMinutes(meetingMinutes);
    }

    /**
     * 修改会议纪要
     * 
     * @param meetingMinutes 会议纪要
     * @return 结果
     */
    @Override
    public int updateMeetingMinutes(MeetingMinutes meetingMinutes)
    {
        return meetingMinutesMapper.updateMeetingMinutes(meetingMinutes);
    }

    /**
     * 批量删除会议纪要
     * 
     * @param ids 需要删除的会议纪要主键
     * @return 结果
     */
    @Override
    public int deleteMeetingMinutesByIds(Long[] ids)
    {
        return meetingMinutesMapper.deleteMeetingMinutesByIds(ids);
    }

    /**
     * 删除会议纪要信息
     * 
     * @param id 会议纪要主键
     * @return 结果
     */
    @Override
    public int deleteMeetingMinutesById(Long id)
    {
        return meetingMinutesMapper.deleteMeetingMinutesById(id);
    }
}
